package com.stepshop.sys.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.stepshop.core.service.impl.BaseServiceImpl;
import com.stepshop.sys.bean.SysArea;
import com.stepshop.sys.dao.SysAreaMapper;
import com.stepshop.sys.service.SysAreaService;
@Service
public class SysAreaServiceImpl extends BaseServiceImpl<SysArea,SysAreaMapper>  implements SysAreaService {
	@Override
	public void saveArea(SysArea area) {
		mapper.insert(area);
//		areaMapper.insert(area);
	}

	@Override
	public SysArea queryAreaById(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<SysArea> queryAll() {
		return mapper.selectAll();
	}

}

